## Configuração para 775.partidopirata.org
## Serviços fora do ar por falta de dinheiro
server {
  listen 80;
  listen [::]:80;
  server_name *.escolapirata.org;
  return 307 http://775.partidopirata.org;
}
server {
  listen 80;
  listen [::]:80;
  server_name *.escolapirata.xyz;
  return 307 http://775.partidopirata.org;
}
server {
  listen 80;
  listen [::]:80;
  server_name *.greve.xyz;
  return 307 http://775.partidopirata.org;
}
server {
  listen 80;
  listen [::]:80;
  server_name *.iikb.org;
  return 307 http://775.partidopirata.org;
}
server {
  listen 80;
  listen [::]:80;
  server_name *.iikb.xyz;
  return 307 http://775.partidopirata.org;
}
server {
  listen 80;
  listen [::]:80;
  server_name *.lapirata.org;
  return 307 http://775.partidopirata.org;
}
server {
  listen 80;
  listen [::]:80;
  server_name *.lapirata.xyz;
  return 307 http://775.partidopirata.org;
}
server {
  listen 80;
  listen [::]:80;
  server_name *.midiapirata.xyz;
  return 307 http://775.partidopirata.org;
}
server {
  listen 80;
  listen [::]:80;
  server_name *.movimentopirata.com.br;
  return 307 http://775.partidopirata.org;
}
server {
  listen 80;
  listen [::]:80;
  server_name *.movimentopirata.net.br;
  return 307 http://775.partidopirata.org;
}
server {
  listen 80;
  listen [::]:80;
  server_name *.movimentopirata.org;
  return 307 http://775.partidopirata.org;
}
server {
  listen 80;
  listen [::]:80;
  server_name *.movimentopirata.xyz;
  return 307 http://775.partidopirata.org;
}
server {
  listen 80;
  listen [::]:80;
  server_name *.partidopirata.com.br;
  return 307 http://775.partidopirata.org;
}
server {
  listen 80;
  listen [::]:80;
  server_name *.partidopirata.net.br;
  return 307 http://775.partidopirata.org;
}
server {
  listen 80;
  listen [::]:80;
  server_name *.partidopirata.xyz;
  return 307 http://775.partidopirata.org;
}
server {
  listen 80;
  listen [::]:80;
  server_name *.pirata.xyz;
  return 307 http://775.partidopirata.org;
}
server {
  listen 80;
  listen [::]:80;
  server_name *.piratas.xyz;
  return 307 http://775.partidopirata.org;
}
server {
  listen 80;
  listen [::]:80;
  server_name *.usem.xyz;
  return 307 http://775.partidopirata.org;
}

server {
  listen 80;
  listen [::]:80;
  server_name 775.partidopirata.org;
  return 301 https://775.partidopirata.org$request_uri;
}
server {
  listen 80;
  listen [::]:80;
  server_name *.775.partidopirata.org;
  return 301 http://775.partidopirata.org$request_uri;
}

## SSL
server {
  listen 443 ssl;
  listen [::]:443 ssl;
  ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
  ssl_prefer_server_ciphers on;
  ssl_ciphers "EECDH+AESGCM:EDH+AESGCM:AES256+EECDH:AES256+EDH";
  ssl_ecdh_curve secp384r1;
  ssl_session_cache shared:SSL:10m;
  ssl_session_tickets off;
  ssl_stapling on;
  ssl_stapling_verify on;
  resolver 208.67.220.220 208.67.222.222 valid=300s;
  resolver_timeout 5s;
  add_header Strict-Transport-Security "max-age=63072000; includeSubdomains; preload";
  add_header X-Frame-Options SAMEORIGIN;
  add_header X-Content-Type-Options nosniff;
  ssl_certificate /etc/letsencrypt/live/partidopirata.org-0001/fullchain.pem;
  ssl_certificate_key /etc/letsencrypt/live/partidopirata.org-0001/privkey.pem;
  ssl_trusted_certificate /etc/letsencrypt/live/partidopirata.org-0001/chain.pem;

  server_name 775.partidopirata.org;
  root /var/www/git/775/;
}

